From: Jonas Dreßler Date: Fri, 18 Feb 2022 20:14:46 +0000 (+0100) Subject: status/network: Show cellular-disabled icon when cellular is disabled X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~516^2^2~51 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ca4f6e01234e9ef7f1315fcb13b89423da670dc7;p=gnome-shell.git status/network: Show cellular-disabled icon when cellular is disabled We also have this icon, so let's use it. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186 Part-of: --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index e36513977..27ae5615f 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -627,6 +627,13 @@ var NMDeviceModem = class extends NMConnectionDevice { return super._getStatus(); } + _getMenuIcon() { + if (!this._client.wwan_enabled) + return 'network-cellular-disabled-symbolic'; + + return this.getIndicatorIcon(); + } + getIndicatorIcon() { if (this._device.active_connection) { if (this._device.active_connection.state == NM.ActiveConnectionState.ACTIVATING)